#ifndef FUNCTIONS_HPP_INCLUDED
#define FUNCTIONS_HPP_INCLUDED

#include <iostream>
#include <mpi.h>
#include <Magick++.h>
#include <string>
#include "usual.hpp"


using std::list;
using std::string;
using std::ostream;
using namespace MPI;
using namespace Magick;
using namespace MagickCore;


void usage(const string&);
void abort(const string&);
unsigned long nextWord(const string&, unsigned long = 0);
string getWord(const string&, unsigned long& );
void rootFunction(Usual*, const char* );

void myGatherv(PixelPacket *sendArray, int sendcounts , Datatype mytype, PixelPacket *rcvArray, int *recvcount, int *disps);


//double read_inputFile(const char* fileName);


#endif // FUNCTIONS_HPP_INCLUDED
